home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Libraries
/
CW GUSI 1.6.4
/
src
/
ProcessAliases
< prev
Wrap
Text File
|
1995-04-02
|
339b
|
25 lines
Perl -Sx "{0}" {"Parameters"}; Exit
#!perl
open(RN, ">StdLib.rn") || die;
open(DF, ">StdLib.df") || die;
while ($ARGV[0] =~ /(.*)=(.*)/) {
print RN "-rn $1=$2 " unless ($1 eq $2);
$keep{$1} = 1;
shift @ARGV;
}
while (<>) {
if (/^(\S+).*\$/ || /EP=(\S+)/) {
unless ($keep{$1}) {
print DF "$1\n";
}
}
}
close DF;
close RN;